Invalid SQL syntax - expected token: NULL. (Error 3726)

This error occurs when issuing a DDL statement that is associated with an index. It can occur when the NULL keyword is not used after the following keywords: CREATE INDEX, WITH PRIMARY, or IGNORE.